package org.projecteboot.coreall.exception;

/**
 * @author LuoQiang
 * @date 2019/7/18 21:40
 **/
public class EbootException extends RuntimeException {
    private int code;
    private String msg;
    private final int DEFAULT_CODE = 500;

    public EbootException() {
        super();
        this.code = DEFAULT_CODE;
    }

    public EbootException(String message) {
        super(message);
        this.code = DEFAULT_CODE;
        this.msg = message;
    }

    public EbootException(String message, Throwable cause) {
        super(message, cause);
        this.code = DEFAULT_CODE;
        this.msg = message;
    }

    public EbootException(Throwable cause) {
        super(cause);
        this.code = DEFAULT_CODE;
    }

}
